import {defineStore} from "pinia";
import {computed, ref} from "vue";

export const useMenuStore = defineStore('menu', () => {
    const selectedKeys = ref(["home"])
    const selectedKeysValue = computed(() => selectedKeys.value)

    function setSelectedKeys(keys) {
        selectedKeys.value = keys
    }

    return {selectedKeys, selectedKeysValue, setSelectedKeys}
})